package cn.jaye.fabric.controller;

import cn.jaye.fabric.application.AccessPointApplicationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Jaye
 * @create 2017-12-21 14:15
 */
@RestController
public class TestController {

    @Autowired
    private AccessPointApplicationService accessPointApplicationService;
    @RequestMapping("/js/demo/table_base")
    public String tableBootstrap() {
        String ret="{\"Tid\": \"lee52\", \"First\": \"1234567\",\"sex\": \"男\",\"Score\": \"12\"}";
        return ret;
    }

    @PostMapping("/test")
    public String test() {
        accessPointApplicationService.listAccessPoint();
        return null;
    }
}
